<?php

namespace App\Models;

use App\Helpers\BaseModel;
use App\Helpers\RequestCriteria;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Analysis extends Model
{
    use HasFactory, RequestCriteria, BaseModel;

    protected $fillable = [
        'dev_id' ,
        'dev_type', 
        'type' ,
        'result' ,
        'user_name',
        'user_id' ,
        'begin_at' ,
        'end_at' ,
        'remarks' , 
        'correction_id' ,
    ];

    protected $casts = [
        'updated_at' => 'datetime:Y-m-d H:i:s',
        'created_at' => 'datetime:Y-m-d H:i:s',
        'result' => 'json'
    ];
}
